package data.platfrom.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import data.framework.service.AbstractService;
import data.platfrom.entity.EntityMember;


@Service
public class LoginServiceImpl extends AbstractService<EntityMember> {

	@Transactional
	public EntityMember memberLoginQuery() {
		EntityMember member2 = new EntityMember();
		member2.setPassword("p000");
		this.getHibernateDao().save(member2);

		EntityMember member = new EntityMember();
		member.setId("p111");
		this.getMyBatisDao().save(member);

		/**
		 * * this.getJdbcDao().execute(
		 * "insert into member (member_key) values ('ssssss')");
		 * 
		 * // throw new NullPointerException();
		 * 
		 * // EntityMember member2 = new EntityMember(); //
		 * member2.setPassword("p222"); // this.getHibernateDao().save(member2);
		 * //
		 * **/

		return member2;
		
	}
}
